﻿using System;
using System.Collections;
using System.ComponentModel;

/// <summary>
/// Sample object to use object data source
/// </summary>
[DefaultProperty("Name")]
public abstract class Category : IEnumerable {

    private string _name;

    public Category(string name) {
        _name = name;
    }

    public string Name {
        get {
            return _name;
        }
    }

    public abstract IEnumerator GetEnumerator();

    public override string ToString() {
        return Name;
    }
}
